package leetcode.code153;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class Solution153 implements IDebug {

	abstract public int findMin(int[] nums);

	@Override
	public void debug1() {
		String str = "[3,4,5,1,2]";
		int expect = 1;
		this.debug(str,expect);
	}

	private void debug(String str, int expect) {
		int[] nums = HelpDebug.str2array3(str);
		int result = this.findMin(nums);
		HelpDebug.compare(expect, result);
	}

	@Override
	public void debug2() {
		String str = "[4,5,6,7,0,1,2]";
		int expect = 0;
		this.debug(str,expect);
	}

	@Override
	public void debug3() {
		String str = "[11,13,15,17]";
		int expect = 11;
		this.debug(str,expect);
	}

	@Override
	public void debug4() {
		// TODO Auto-generated method stub

	}

}
